import request from '@/utils/request'
//封装获取车辆月卡信息
export function getCardListAPI(params) {
    return request({
        url: '/parking/card/list',
        method: 'get',
        params
    })
}


/*
 *添加接口封装
 */
//增加数据
export function CreateCardAPI(data) {
    return request({
        url: '/parking/card',
        method: 'post',
        data
    })
}
//获取月卡编辑信息
export function getDetailAPI(id) {
    return request({
        url: `/parking/card/detail/${id}`
    })
}
//封装编辑月卡接口
export function updateCardAPI(data) {
    return request({
        url: '/parking/card/edit',
        method: 'put',
        data
    })
}
//封装删除接口
export function deleteCardAPI(id) {
    return request({
        url: `/parking/card/${id}`,
        method: 'DELETE'

    })
}